PowerTCP Mail for .NET
Code Examples



The following lists direct links to pages in this help file that contain easy-to-follow code examples.

General Examples 

OAuth usage

Use Start and Marshal to execute functions without blocking the User Interface

Save attachments to disk

Save resources (HTML inline files) to disk

Save messages to disk

IMAP Examples 

Connect to an IMAP server and authenticate, with encryption options

Retrieve all messages in a mailbox

Get only the headers of the messages in a mailbox

Display progress while retrieving messages

Create, rename and delete a mailbox

Subscribe a mailbox

Search for and only retrieve messages that fit a specific criteria

Upload a message to a mailbox

Copy messages in one mailbox to another

Using IMAP IDLE

Delete a single message

Delete a set or range of messages

Download a message's attachments without downloading the entire message

SMTP and MailMessage Examples

Connect to an SMTP server and authenticate, with encryption options

Create and send a mail message

Send a message on a worker thread, without blocking the User Interface

Add an attachment to a message

Reply to a message

Create a reply separator for a UI-based reply

Forward a message

Redirect a message

Create a custom Reply message

Create an HTML message

Add custom header lines to a message

Create an S/MIME signed message

Create an S/MIME encrypted message

Decode S/MIME messages

Using DSN

POP Examples

Connect to a POP server and authenticate, with encryption options

Retrieve all messages from the server

Get only the headers of the messages on the server

Save retrieved messages to disk

Display progress while retrieving messages

Log a session to a textbox


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic